package com.yds.ydsdatasetbackend.file;

import com.yds.ydsdatasetbackend.model.dto.file.message.GetFileMessageRequest;
import com.yds.ydsdatasetbackend.model.dto.file.message.GetFileMessageResponse;
import com.yds.ydsdatasetbackend.model.dto.file.predict.remote.RemoteFilePredictAddRequest;
import com.yds.ydsdatasetbackend.model.dto.file.train.remote.RemoteFileTrainAddRequest;
import com.yds.ydsdatasetbackend.model.vo.TrainResult;

/**
 * 代码沙箱接口定义
 */
public interface RemoteInteraction {
    /**
     * 执行代码
     * @param getFileMessageRequest
     * @return
     */
    GetFileMessageResponse executeCode(GetFileMessageRequest getFileMessageRequest);

    /**
     * 进行训练
     */
    String doTrain(RemoteFileTrainAddRequest remoteFileTrainAddRequest);

    /**
     * 进行预测
     * @param remoteFilePredictAddRequest
     * @return
     */
    String doPredict(RemoteFilePredictAddRequest remoteFilePredictAddRequest);
}